package com.feisuanyz.lyweb01.pojo.dto;

import lombok.Data;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.NotBlank;

/**
 * 合作购买对象
 *
 * @author deng
 * @date 2025-02-26 11:57:37
 */
@Data
public class CooperativePurchaseDTO {

    @NotNull(groups = { DeleteGroup.class, UpdateGroup.class }, message = "合作购买信息ID不能为空")
    private Integer purchaseId;

    @NotBlank(groups = { CreateGroup.class }, message = "合作购买标题不能为空")
    private String purchaseTitle;

    private String purchaseDescription;

    @NotNull(groups = { CreateGroup.class }, message = "创建人不能为空")
    private Integer createBy;

    @NotNull(groups = { UpdateGroup.class }, message = "修改人不能为空")
    private Integer updateBy;
}
